Let OSM "build" when expat isn't available.
authorrobertl <robertl>
Sat, 27 Jun 2009 04:53:21 +0000 (04:53 +0000)
committerrobertl <robertl>
Sat, 27 Jun 2009 04:53:21 +0000 (04:53 +0000)
osm.c

diff --git a/osm.c b/osm.c
index 7ef5c4f4cd63d4b4f933b705e2426a26bd87a60a..ec42113d78131fe549b8ce056d1d88794b8ebc9c 100644 (file)
--- a/osm.c
+++ b/osm.c
@@ -44,9 +44,10 @@ static avltree_t *icons = NULL;
 
 static gbfile *fout;
 static int node_id;
-static route_head *rte;
 static int skip_rte;
 
+#if HAVE_LIBEXPAT
+static route_head *rte;
 static waypoint *wpt;
 static int wpt_loaded, rte_loaded;
 
@@ -64,6 +65,7 @@ xg_tag_mapping osm_map[] = {
        { osm_way_end,  cb_end,         "/osm/way" },
        { NULL,         0,              NULL }
 };
+#endif // HAVE_LIBEXPAT
 
 static const char *osm_features[] = {
        "- dummy -",    /*  0 */